//
//  MonthChargeViewCell.m
//  Runone
//
//  Created by runone02 on 17/4/20.
//  Copyright © 2017年 runone. All rights reserved.
//

#import "MonthChargeViewCell.h"
#import "TollStationChargeListModel.h"
@interface MonthChargeViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@end

@implementation MonthChargeViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (void)setModel:(TollStationChargeListModel *)model{
    
    _model = model;
    self.name.text=model.TollStationName;
    NSArray*timeArray=[model.ChargeDate componentsSeparatedByString:@" "];
    if (timeArray.count!=0) {
        self.timeLabel.text=timeArray[0];
    }
    
    self.priceLabel.text=[NSString stringWithFormat:@"%@",model.ChargeAmount ];
    self.countLabel.text=[NSString stringWithFormat:@"%@",model.ExportTrafficFlow];
    
    
    
    
    // MARK: 给子控件设置数据
    
}


@end

